<?
	$tpl->assign("url", URL);
	$tpl->assign("uri", $dsfm_uri);

	switch($user['level_name']){
		case "admin" : $_SESSION['user']['level_thai_name'] = "ผู้ดูแลระบบ"; break;
		case "board" : $_SESSION['user']['level_thai_name'] = "ผู้ประเมินภายนอก"; break;
		case "officer" : $_SESSION['user']['level_thai_name'] = "เจ้าหน้าที่"; break;
		case "assessor" : $_SESSION['user']['level_thai_name'] = "ผู้ประเมินตนเอง"; break;
	}

	$tpl->assign("user", $_SESSION['user']);

	if(isset($_SESSION['year'])){
		$tpl->assign("year", $_SESSION['year']);
	}else{
		$_SESSION['year'] = $db->minOf("year", "year");
	}

	$all_year = $dsfm_common->get_all("year");
	$tpl->assign("all_year", $all_year);

	$tpl->assign("login", $_SESSION['login']);
?>